<template>
  <formitem-wapper :formitem="formitem">
    <a-switch v-bind="widgetAttrs" v-decorator="[formitem.key, {valuePropName: 'checked'}]" checkedChildren="是" unCheckedChildren="否"/>
  </formitem-wapper>
</template>

<script>
  import FormitemWapper from './../FormitemWapper.vue'
  import {FormItemMixin} from './../FormItenMixin'

  export default {
    name: 'SwitchWidget',
    mixins:[FormItemMixin],
    components:{
      FormitemWapper
    },

  }
</script>

<style scoped>

</style>